home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Zone 96
/
PC Zone #096.7z
/
Dppcz1200.mdf
/
Demos
/
Gunlok
/
data1.cab
/
Program_Executable_Files
/
scripts
/
nanofrag.gsh
< prev
next >
Wrap
Text File
|
2000-09-09
|
3KB
|
129 lines
// defines the weapon Wpn_Nanofrag
////////////////////////////////////////////////////////////////////////////////////
// start wrapper - prevent multiple inclusions or recursive inclusions
//(this currently causes 'unrecognized preprocessor directive' warnings, until implemented)
#ifndef INCLUDED_NANOFRAG_GSH
#define INCLUDED_NANOFRAG_GSH
#include "defaults.gsh"
////////////////////////////////////////////////////////////////////////////////////
light Lit_Nanofrag
{
red 4
green 5
blue 3
specular red 0.3
specular green 0.4
specular blue 0.2
range 64
}
pgenerator Pgn_Nanofrag
{
type explosion
life infinite // well, it lasts as longs as the projectile it's attached to anyway
rate 30
generategenerators yes
// stream direction
x 0 y 0 z 0
// particle colour
red 0.2 green 0.6 blue 0.7 alpha 0.7
start scale 0.6
end scale 0.0
}
projectile Prj_Nanofrag
{
gravity no // is this missile affected by gravity
damage 99 // in strength points
//blast damage 99 // proximity damage
//blast range 2 // in metres - off - because otherwise fragboulders brake
hit_light Lit_Nanofrag // just for the explosion
sound nanofrag sound
max range 600
}
role Rol_Nanofrag : Rol_DefaultProjectile
{
pgen Pgn_Nanofrag
projectile Prj_Nanofrag
limit 80
identifier "nanofrag_projectile"
}
// NANOFRAG
ammo
{
weapon type nanofrag
ammo type nanotech dismantler
round time 4
reload time 5
life timer 0
magazine size 5
sound nanofrag sound
file "User Interface/CommWheel01.RIF" // command wheel icon
name "sub ammo nano ra"
projectile Rol_Nanofrag // what it fires
firing speed 10 // m/s
}
////////////////////////////////////////////////////////////////////////////////////
shape Shp_Nanofrag_Pickup
{
file "objects\nanofrag pickup a.rif"
name "nanofrag pickup a"
}
hierarchy Hcy_Nanofrag_Inventory_Pickup
{
file "objects\nanofrag.rif"
name "nanofrag"
hotspot none
}
character Chr_Nanofrag_Pickup : Chr_Default
{
turning speed 0 // this is in revolutions per second
walking speed 0 // this is in animation cycles per second
weapon nanofrag
strength 10 // initial strength points
aim 0
aggression 0.41 // 4 = weapon pickup
}
role Rol_Nanofrag_Pickup : Rol_DefaultPickup
{
shape Shp_Nanofrag_Pickup
inventory shape Hcy_Nanofrag_Inventory_Pickup
character Chr_Nanofrag_Pickup
identifier "nanofrag"
destructibility Des_Explode
armour 25
limit 2
description nanofrag description
pickup name nanofrag pickup
}
////////////////////////////////////////////////////////////////////////////////////
// end wrapper - for preventing multiple or recursive inclusions
#endif // !INCLUDED_NANOFRAG_GSH